﻿using System;

namespace YArchitech.HVAC
{
	public class DimEquipmentData
	{
		public DimEquipmentData()
		{
			this.DimStype = 1;
			this.FloorName = "F1";
			this.DimContent = "";
			this.NumberType = 1;
			this.NumberContent = "1";
			this.IsLead = true;
		}

		public DimEquipmentData(DimEquipmentData src)
		{
			this.DimStype = src.DimStype;
			this.FloorName = src.FloorName;
			this.DimContent = src.DimContent;
			this.NumberType = src.NumberType;
			this.NumberContent = src.NumberContent;
			this.IsLead = src.IsLead;
		}

		public int DimStype { get; set; }

		public string FloorName { get; set; }

		public string DimContent { get; set; }

		public int NumberType { get; set; }

		public string NumberContent { get; set; }

		public bool IsLead { get; set; }

		public string DimFGText(string sysName, string szNum)
		{
			string str = "";
			if (!string.IsNullOrEmpty(sysName))
			{
				str = str + sysName + "-";
			}
			if (!string.IsNullOrEmpty(this.FloorName))
			{
				str = str + this.FloorName + "-";
			}
			return str + szNum;
		}
	}
}
